package business.report.impl;

import business.report.FoodProductionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.FoodProduction;
import report.domain.FoodProductionCriteria;
import report.mapper.FoodProductionMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "foodProductionService")
public class FoodProductionServiceImpl implements FoodProductionService{
    @Autowired
    FoodProductionMapper foodProductionMapper;

    @Override
    public List<FoodProduction> getFoodProduction() {
        FoodProductionCriteria criteria = new FoodProductionCriteria();
        criteria.createCriteria().getAllCriteria();
        return foodProductionMapper.selectByExample(criteria);
    }
}
